//
//  HomeTbvCell2.m
//  Ten
//
//  Created by anfuer on 2018/11/9.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "HomeTbvCell2.h"
#import "UIButton+WebCache.h"
@implementation HomeTbvCell2

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (instancetype)CellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"HomeTbvCell2";
    HomeTbvCell2 *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"HomeTbvCell2" owner:nil options:nil] lastObject];
        
    }
    
    
    return cell;
    
    
}
-(void)Cellinit:(NSDictionary*)dic
{
    
    _lb1.text=WXGStr(dic[@"title"]);
    _lb2.text=[NSString stringWithFormat:@"￥%@/%@",dic[@"salary"],[WXGStr(dic[@"salary_type"])isEqualToString:@"2"]?@"月":@"日"];
    _lb3.text=[NSString stringWithFormat:@"%@|%@|%@",dic[@"city_area_name"],dic[@"education"],[NSString stringWithFormat:@"工作经验%@",dic[@"work_year"]]];
    if (WXGStr(dic[@"add_time"]).length==10) {
        _lb4.text= [FuncPublic time:dic[@"add_time"]];
    }else
    {
        _lb4.text=WXGStr(dic[@"add_time"]);
    }
    [[_imgBtno imageView] setContentMode:UIViewContentModeScaleAspectFit];
    [_imgBtno sd_setImageWithURL:[dic[@"company"][@"logo"]formatUrl] forState:UIControlStateNormal placeholderImage:WXGImage(@"zhanwei")];
    _lb5.text=WXGStr(dic[@"company"][@"name"]);
}


@end
